package me.zhengjie.modules.app.rest;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.modules.app.service.GameConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Api("app/api/v1/game-config")
@RestController
@RequestMapping("/app/api/v1/game-config")
public class GameConfigController {
    @Autowired
    private GameConfigService gameConfigService;

    @GetMapping("/query")
    public ResponseEntity query(){
        return ResponseEntity.ok(gameConfigService.list());
    }

}
